package com.hg.chapter1.aop;

import com.hg.chapter1.aop.annotation.MyService;
import com.hg.chapter1.aop.method.MethodService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@ComponentScan("com.hg.chapter1.aop")
@EnableAspectJAutoProxy
//开启支持
public class AspectConfig {
//    @Bean
//    public MyService bean1() {
//        return new MyService();
//    }
//
//    @Bean
//    public MethodService bean2() {
//        return new MethodService();
//    }
}
